import 'package:flutter/material.dart';

class MyApp6 extends StatelessWidget {
  const MyApp6({super.key});


  @override
  Widget build(BuildContext context) {
    // const int age = 18;

    return Scaffold(
      // 1. 导航条
      appBar: AppBar(
        title: const Text('无状态组件'),
        backgroundColor: Colors.pink,
      ),
      // 2. 主体内容
      body: const Text(
        '《春宵》 苏轼 \n 春宵一刻值千金，花有清香月有阴。\n 歌管楼台声细细，秋千院落夜沉沉。秋千院落夜沉沉。', 
        style: TextStyle(color: Colors.orange, fontSize: 20.0, fontWeight: FontWeight.bold, fontStyle: FontStyle.italic),
        maxLines: 3,
        overflow: TextOverflow.ellipsis,
      )
    );
  }
}
